import request from '@/utils/request'

export function getUnReadCount() {
  return request({
    url: '/community/message/getMessageCount',
    method: 'get',
  })
}

export function getUnreadAnnounceCount() {
  return request({
    url: '/community/message/getUnreadAnnounceCount',
    method: 'get',
  })
}

export function getAnnounceList(query) {
  return request({
    url: '/community/message/announceList',
    method: 'get',
    params: query
  })
}

export function getAnnounce(data) {
  return request({
    url: '/community/message/getAnnounce',
    method: 'post',
    data: data
  })
}

export function getUnreadRemindCount() {
  return request({
    url: '/community/message/getUnreadRemindCount',
    method: 'get',
  })
}

export function getRemindList(query) {
  return request({
    url: '/community/message/remindList',
    method: 'get',
    params: query
  })
}

export function getRemind(data) {
  return request({
    url: '/community/message/getRemind',
    method: 'post',
    data: data
  })
}

// export function addAnnounceList(query) {
//   return request({
//     url: '/message/remindList',
//     method: 'get',
//     params: query
//   })
// }

// export function addAnnounceList(query) {
//   return request({
//     url: '/message/getRemind',
//     method: 'post',
//     data: query
//   })
// }
